package com.tencent.service.impl;

import com.tencent.entity.Diet;
import com.tencent.mapper.DietMapper;
import com.tencent.service.DietService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: Fame
 * @date: 2022-08-30 15:27
 * @description:
 */
@Service
public class DietServiceImpl implements DietService {

    @Autowired(required = false)
    private DietMapper dietMapper;

    @Override
    public List<Diet> getAll() {
        return dietMapper.getAll();
    }

    public List<Diet> getByLevel(String level){return dietMapper.getByLevel(level);}
}
